package com.yingdong.message;

import com.yingdong.opcode.ServerOpcode;
import com.yingdong.sceneserver.inner.message.SendBaseMessage;

public class LoginOkMessage extends SendBaseMessage {

	public LoginOkMessage(int result, int accId, int userId) {
		super(ServerOpcode.LOGIN_OK);
		writeByte(result);
		writeLong(System.currentTimeMillis());
		
		if (result == 1) {
			writeInt(accId);
			writeInt(userId);
		}
	}
}
